package client.comm.baoding.ui

import android.content.Context
import android.content.Intent
import client.comm.baoding.R
import client.comm.baoding.databinding.ActivityTextContentBinding
import client.comm.baoding.ui.vm.TextContentModel
import client.comm.commlib.base.BaseActivity

/**
 * 用户协议
 */
class TextContentActivity : BaseActivity<TextContentModel, ActivityTextContentBinding>() {

    override fun getLayout(): Int {
        return R.layout.activity_text_content
    }

    override fun initViewModel(): TextContentModel = createViewModel()

    override fun initData() {
        binding.protocol = this
        val title = intent.getStringExtra("title")
        val content = intent.getStringExtra("content")

        binding. tvTitle.text = title
        binding. tvContent.text = content
    }

    fun onFinish(){
        finish()
    }


}